// import { install } from "element-ui";

const fullScreen = {
   inserted(el, binding) {
      el.addEventListener('click', function () {
         document.documentElement.requestFullscreen()
         if (document.fullscreen) {
            console.log(document.fullScreen);
            document.exitFullscreen()
         }
      })
   }
}

export const fullScreens = {
   // install: function (Vue) {
   //    Vue.directive('fullScreen', fullScreen)
   // }
   install(Vue) {
      Vue.directive('fullScreen', fullScreen)
   }
}